<template src="./tmpl-container.html"></template>

<script>
    import mixinBaseContainer from '../mixins/mixin-base-container'

    export default {
        mixins: [mixinBaseContainer],
        data () {
            return {
                CATEGORY: 'job'
            }
        },
        methods: {
            /**
             * 返回实例详情
             */
            goInstanceDetail () {
                const params = {
                    projectId: this.projectId,
                    projectCode: this.projectCode,
                    instanceId: this.instanceId,
                    instanceName: this.instanceName,
                    instanceNamespace: this.instanceNamespace,
                    instanceCategory: this.instanceCategory,
                    searchParamsList: this.searchParamsList
                }
                if (this.namespaceId) {
                    params.namespaceId = this.namespaceId
                }
                this.$router.push({
                    name: 'jobInstanceDetail2',
                    params: params
                })
            }
        }
    }
</script>

<style scoped>
    @import '../container.css';
</style>
